/* Copyright (c) 2010 OFXKit
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#import <Foundation/Foundation.h>

#import "OFXSecurity.h"
#import "OFXInvestmentAccount.h"
#import "OFXInvestmentTransaction.h"

@interface OFXCloseOptionTransaction : OFXInvestmentTransaction {
  OFXSecurity* security;
  NSString* action;
  
  NSNumber* units;
  NSNumber* sharesPerContract;
  NSString* securitySubAccount;
  
  NSString* relatedFinancialInstitutionId;
  
  NSNumber* gain;
}

/**
 * @property security
 * @brief Underlying security
 */
@property(retain) OFXSecurity* security;

/**
 * @property action
 * @brief Action type: EXERCISE, ASSIGN, EXPIRE
 */
@property(retain) NSString* action;

/**
 * @property units
 * @brief Number of units
 */
@property(retain) NSNumber* units;

/**
 * @property sharesPerContract
 * @brief Shares per contract
 */
@property(retain) NSNumber* sharesPerContract;

/**
 * @property securitySubAccount
 * @brief Sub-account type for the security: CASH, MARGIN, SHORT, OTHER
 */
@property(retain) NSString* securitySubAccount;

/**
 * @property relatedFinancialInstitutionId
 * @brief Related financial institution id.
 */
@property(retain) NSString* relatedFinancialInstitutionId;

/**
 * @property gain
 * @brief Gain from transaction.
 */
@property(retain) NSNumber* gain;

@end
